<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    const date = +prompt("请输入总的秒数")
    function getTime(t) {
        let h = parseInt(t / 60 / 60 % 24)
        let m = parseInt(t / 60 % 60)
        let s = parseInt(t % 60)
        h = h < 10 ? "0" + h : h
        m = m < 10 ? "0" + m : m
        s = s < 10 ? "0" + s : s
        return `转换完毕之后是${h}小时${m}分${s}秒`
    }
    const res=getTime(date)
    alert(res)
</script>
</body>
</html>